package kr.co.icebird.spring3.common.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import kr.co.icebird.spring3.common.model.Menu;

@Service("MenuServcie")
public class MenuServiceImpl implements MenuService {

	public List<Menu> getMenuList() throws Exception {
		List<Menu> rList = new ArrayList<Menu>();
		menu(rList);
		return rList;
	}

	public void menu(List<Menu> mList) {
		
		Menu menu01 = new Menu(1, null, "JQUERY", "/rest/jquery/main");
		Menu menu02 = new Menu(2, 1, "JQUERY TEST01", "/rest/jquery/list");
		Menu menu03 = new Menu(3, null, "HTML5", "/rest/html5/main");
		Menu menu04 = new Menu(4, null, "JFREE", "/jfree/list.do");
		Menu menu05 = new Menu(5, null, "JQUERY", "/rest/jquery/main");
		Menu menu06 = new Menu(6, null, "JQUERY", "/rest/jquery/main");
		
		mList.add(menu01);
		mList.add(menu02);
		mList.add(menu03);
		mList.add(menu04);
		mList.add(menu05);
		mList.add(menu06);
	}
}

